<?php

Route::group('client', function (){
    Route::bind('client');
    /**
     * 微信授权登录
     * $code 微信登录的code
     * **/
    Route::post('login', 'client/Login/login');
    
    /**
     * 微信用户信息
     * **/
    Route::post('userinfo', 'client/User/userInfo');
    
    
    /**
     * 附近的设备
     * **/
    Route::get('neardevice', 'client/Index/nearDevice');
    
    /**
     * 获取设备信息
     * **/
    Route::get('device', 'client/Device/getDevice');
    
    /**
     * 充电
     * **/
    Route::post('charge', 'client/Charge/charge');
    /**
     * 充电结果
     * **/
    Route::post('chargeResult', 'client/Charge/chargeResult');
    /**
     * 充电中订单
     * **/
    Route::get('order/charging', 'client/ChargeOrder/charging');
    /**
     * 增加时间获取订单时间
     * **/
    Route::get('extendChargeInfo', 'client/Charge/extendChargeInfo');
    /**
     * 增加充电时间
     * **/
    Route::post('extendCharge', 'client/Charge/extendCharge');
    /**
     * 增加充电时间结果
     * **/
    Route::post('extendResult', 'client/Charge/extendChargeResult');
    /**
     * 停止充电
     * **/
    Route::post('stopCharge', 'client/Charge/stopCharge');
    /**
     * 充电状态
     * **/
    Route::get('chargestatus', 'client/ChargeOrder/getOrderStatus');
    /**
     * 充电详情
     * **/
    Route::get('chargedetail', 'client/ChargeOrder/detail');
    
    
    /**
     * 充电订单列表
     * **/
    Route::get('order/list', 'client/ChargeOrder/orderList');
    
    
    
    /**
     * 充电完成结算
     * **/
    Route::post('settlement/:name', 'client/Settlement/:name');

    
    
    /**
     * 充电微信支付异步请求
     * **/
    Route::post('notify/charge', 'client/Notify/chargeNotify');
    
    /**
     * 增加充电微信支付异步请求
     * **/
    Route::post('notify/addcharge', 'client/Notify/extendChargeNotify');
    
    /**
     * 充电退款
     * **/
    Route::post('chargeRefund', 'client/Refund/chargeRefund');
    
    /**
     * 增加充电退款
     * **/
    Route::post('extendChargeRefund', 'client/Refund/extendChargeRefund');
    
    
    /**
     * 线上卡充电
     * **/
    Route::post('cardcharge/:name', 'client/CardCharge/:name');
    
    
    /**
     * 测试充电
     * **/
    Route::post('testcharge/:name', 'client/Testcharge/:name');
    
});





